﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Campus.Entities
{
    [Table("Pagos")]
    public class Pago
    {
        public int PagoId
        {
            get;
            set;
        }
        
        [DisplayName("Fecha de Pago")]
        [Required(ErrorMessage = "La {0} es requerida")]
        [DataType(DataType.DateTime)]
        public DateTime FechaDePago
        {
            get;
            set;
        }

        [Required(ErrorMessage = "El {0} es requerido")]
        public float Monto
        {
            get;
            set;
        }
        
        [StringLength(200, ErrorMessage = "Las {0} no puede tener mas 200 caracteres")]
        public string Notas
        {
            get;
            set;
        }

        [Required(ErrorMessage = "La Actividad es requerida")]
        public int ActividadId
        {
            get;
            set;
        }

        public virtual Actividad Actividad
        {
            get;
            set;
        }

        [Required(ErrorMessage = "El Estudiante es requerido")]
        public int EstudianteId
        {
            get;
            set;
        }

        public virtual Estudiante Estudiante
        {
            get;
            set;
        }

        public bool IsBorrado
        {
            get;
            set;
        } 
    }
}
